home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 30 / Amiga Format AFCD30 (Sep 1998, Issue 114).iso / -screenplay- / hd_installers / apprentice / install-apprentice < prev    next >
Text File  |  1998-06-22  |  1KB  |  72 lines

  1. (set #CI_UNIT 0)
  2. (set #CI_DRIVE ("DF%ld:" #CI_UNIT))
  3.  
  4. ;----------------------------
  5.  
  6. ;try to figure out a place where the user usually installs his games
  7. (if (exists "Games:" (noreq) )
  8.     (set @default-dest "Games:")
  9.     (if (exists "SYS:Games" (noreq) )
  10.         (set @default-dest "SYS:Games")
  11.         (if (exists "Work:Games" (noreq) )
  12.             (set @default-dest "Work:Games")
  13.             (if (exists "JEUX:" (noreq) )
  14.                (set @default-dest "JEUX:")
  15.                (set @default-dest "SYS:")
  16.             )
  17.         )
  18.     )
  19. )
  20.  
  21.  
  22. (set @default-dest
  23. (askdir
  24.     (prompt ("Where should %s installed ?\nA drawer \"%s\" will automatically created." @app-name @app-name))
  25.     (help @askdir-help)
  26.     (default @default-dest)
  27.     (disk)
  28. )
  29. )
  30.  
  31. (set #dest (tackon @default-dest @app-name))
  32.  
  33.  
  34. (makedir #dest
  35.     (help @makedir-help)
  36.     (infos)
  37. )
  38.  
  39. ;----------------------------
  40.  
  41. (copyfiles
  42.     (help @copyfiles-help)
  43.     (source "ApprenticeHD")
  44.     (dest #dest)
  45.     (infos)
  46. )
  47.  
  48. (copyfiles
  49.     (help @copyfiles-help)
  50.     (source "ApprenticeHD.readme")
  51.     (dest #dest)
  52.     (infos)
  53. )
  54.  
  55. (makedir ("%s/data" #dest))
  56.  
  57. (message ("\nInsert Apprentice into drive %ld !" #CI_UNIT))
  58.     (if
  59.         (= 0 (run ("Rip_Files \"%s/data\" >CON:///1000//CLOSE/WAIT" #dest)))
  60.         ("")
  61.         (abort "\"Rip_Files\" must be in your PATH !")
  62.     )
  63.  
  64.         (if
  65.                 (= 0 (run ("Boot2File %ld \"%s/data/BootBlock.d1\"" #CI_UNIT #dest)))
  66.                 ("")
  67.                 (abort "\"Boot2File\" must be in your PATH !")
  68.         )
  69.  
  70. (exit)
  71.  
  72.